﻿using System.Text.Json.Serialization;

namespace Aurora.AI.Wiki.Models.Videos;

public class VideoCreateResponse
{
    public List<VideoDataResult> data { get; set; }
    public int created { get; set; }
    public bool successful { get; set; }
    public string  message { get; set; }
    public string id { get; set; }
    public string status { get; set; }

    public bool finish
    {
        get
        {
            return "SUCCESS".Equals(status);
        }
    }

    public record VideoDataResult
    {
        [JsonPropertyName("url")] public string Url { get; set; }
        [JsonPropertyName("cover_image_url")] public string CoverImageUrl { get; set; }
    }
}
